<template>
    <div>
        <the-header></the-header>
        <the-aside></the-aside>
        <div class="content-box" :class="{'content-collapse':collapse}">
            <router-view></router-view>
        </div>
    </div>
</template>

<script>
import header from './header.vue';
import aside from './aside.vue';
import bus from '../assets/js/bus';
export default {
    components: {
        'the-header':header,
        'the-aside':aside
    },
    data(){
        return{
            collapse:false
        }
    },
    created(){
        bus.$on('collapse',msg=>{
            this.collapse =msg
        })
    }
}
</script>